package com.ztesoft.web.filecommon.db.dao.mapper;

import com.ztesoft.web.filecommon.db.arg.FileScanRuleTplArg;
import com.ztesoft.web.filecommon.db.po.FileScanRuleTplPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IFileScanRuleTplMapper {
    
    List<Integer> countByArg(FileScanRuleTplArg arg);

    List<FileScanRuleTplPO> selectByArg(FileScanRuleTplArg arg);

    FileScanRuleTplPO selectByPrimaryKey(Integer id);

    List<FileScanRuleTplPO> selectByArgAndPage(FileScanRuleTplArg arg, RowBounds rowBound);

    int insert(FileScanRuleTplPO record);

    int insertSelective(FileScanRuleTplPO record);

    int insertBatch(@Param("list") List<FileScanRuleTplPO> records);

    int updateByArgSelective(@Param("record") FileScanRuleTplPO record,
            @Param("arg") FileScanRuleTplArg arg);

    int updateByArg(@Param("record") FileScanRuleTplPO record,
            @Param("arg") FileScanRuleTplArg arg);

    int updateByPrimaryKeySelective(FileScanRuleTplPO record);

    int updateByPrimaryKey(FileScanRuleTplPO record);
    
    int deleteByArg(FileScanRuleTplArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}